package com.zhongfl.crm.mapper;

import com.zhongfl.crm.model.LxChannel;
import com.zhongfl.crm.model.LxDeliverOrder;
import com.zhongfl.crm.request.LxChannelRequest;
import com.zhongfl.crm.request.LxDeliverOrderRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 交付订单Mapper
 *
 * @author 奈良鹿丸
 * @date 2018/9/21
 */
public interface LxDeliverOrderMapper {

    /**
     * 按照励销客户订单ID查询励销客户订单对应的交付订单列表
     *
     * @param lxCustomerOrderId 励销客户订单ID
     * @return 励销交付订单对象集合
     */
    List<LxDeliverOrder> selectLxDeliverOrderByLxCustomerId(Long lxCustomerOrderId);

    /**
     * 分页查询所有交付订单数据
     * @param lxDeliverOrderRequest
     * @return
     */
    List<LxDeliverOrder> findLxDeliverOrderByPage(LxDeliverOrderRequest lxDeliverOrderRequest);

    /**
     * 按id查询交付订单详情
     * @param id
     * @return
     */
    LxDeliverOrder findLxDeliverOrderById(@Param("id") Long id);

    /**
     *按渠道id查询对应的交付订单
     * @param lxDeliverOrderRequest
     * @return
     */
    List<LxDeliverOrder> findLxDeliverOrderByCustomerId(LxDeliverOrderRequest lxDeliverOrderRequest);

//    /**
//     * 按客户id查询对应的交付订单
//     * @param lxDeliverOrderRequest
//     * @return
//     */
//    List<LxDeliverOrder> findLxDeliverOrderByCustomerIds(LxDeliverOrderRequest lxDeliverOrderRequest);
}
